
package com.tfj.utils;





import com.hyphenate.tfj.R;

import java.util.LinkedHashMap;

/**
 * 作者：Rance on 2016/11/29 10:47
 * 邮箱：rance935@163.com
 * 表情加载类,可自己添加多种表情，分别建立不同的map存放和不同的标志符即可
 */
public class EmotionUtils {

    /**
     * key-表情文字;
     * value-表情图片资源
     */
    public static LinkedHashMap<String, Integer> EMPTY_GIF_MAP;
    public static LinkedHashMap<String, Integer> EMOTION_STATIC_MAP;


    static {
        EMPTY_GIF_MAP = new LinkedHashMap<>();
        EMPTY_GIF_MAP.put("[):]", R.drawable.ee_1);
        EMPTY_GIF_MAP.put("[:D]", R.drawable.ee_2);
        EMPTY_GIF_MAP.put("[;)]", R.drawable.ee_3);
        EMPTY_GIF_MAP.put("[:-o]", R.drawable.ee_4);
        EMPTY_GIF_MAP.put("[:p]", R.drawable.ee_5);
        EMPTY_GIF_MAP.put("[(H)]", R.drawable.ee_6);
        EMPTY_GIF_MAP.put("[:@]", R.drawable.ee_7);
        EMPTY_GIF_MAP.put("[:s]", R.drawable.ee_8);
        EMPTY_GIF_MAP.put("[:$]", R.drawable.ee_9);
        EMPTY_GIF_MAP.put("[:(]", R.drawable.ee_10);
        EMPTY_GIF_MAP.put("[:'(]", R.drawable.ee_11);
        EMPTY_GIF_MAP.put("[:|]", R.drawable.ee_12);
        EMPTY_GIF_MAP.put("[(a)]", R.drawable.ee_13);
        EMPTY_GIF_MAP.put("[8o|]", R.drawable.ee_14);
        EMPTY_GIF_MAP.put("[8-|]", R.drawable.ee_15);
        EMPTY_GIF_MAP.put("[+o(]", R.drawable.ee_16);
        EMPTY_GIF_MAP.put("[<o)]", R.drawable.ee_17);
        EMPTY_GIF_MAP.put("[|-)]", R.drawable.ee_18);
        EMPTY_GIF_MAP.put("[*-)]", R.drawable.ee_19);
        EMPTY_GIF_MAP.put("[:-#]", R.drawable.ee_20);
        EMPTY_GIF_MAP.put("[:-*]", R.drawable.ee_21);
        EMPTY_GIF_MAP.put("[^o)]", R.drawable.ee_22);
        EMPTY_GIF_MAP.put("[8-)]", R.drawable.ee_23);
        EMPTY_GIF_MAP.put("[(|)]", R.drawable.ee_24);
        EMPTY_GIF_MAP.put("[(u)]", R.drawable.ee_25);
        EMPTY_GIF_MAP.put("[(S)]", R.drawable.ee_26);
        EMPTY_GIF_MAP.put("[(*)]", R.drawable.ee_27);
        EMPTY_GIF_MAP.put("[(#)]", R.drawable.ee_28);
        EMPTY_GIF_MAP.put("[(R)]", R.drawable.ee_29);
        EMPTY_GIF_MAP.put("[({)]", R.drawable.ee_30);
        EMPTY_GIF_MAP.put("[(})]", R.drawable.ee_31);
        EMPTY_GIF_MAP.put("[(k)]", R.drawable.ee_32);
        EMPTY_GIF_MAP.put("[(F)]", R.drawable.ee_33);
        EMPTY_GIF_MAP.put("[(W)]", R.drawable.ee_34);
        EMPTY_GIF_MAP.put("[(D)]", R.drawable.ee_35);
//        EMPTY_GIF_MAP.put("[色]", R.drawable.emotion_se_gif);
//        EMPTY_GIF_MAP.put("[发呆]", R.drawable.emotion_fadai_gif);
//        EMPTY_GIF_MAP.put("[得意]", R.drawable.emotion_deyi_gif);
//        EMPTY_GIF_MAP.put("[流泪]", R.drawable.emotion_liulei_gif);
//        EMPTY_GIF_MAP.put("[害羞]", R.drawable.emotion_haixiu_gif);
//        EMPTY_GIF_MAP.put("[尴尬]", R.drawable.emotion_ganga_gif);
//        EMPTY_GIF_MAP.put("[发怒]", R.drawable.emotion_fanu_gif);
//        EMPTY_GIF_MAP.put("[调皮]", R.drawable.emotion_tiaopi_gif);
//        EMPTY_GIF_MAP.put("[呲牙]", R.drawable.emotion_ciya_gif);
//        EMPTY_GIF_MAP.put("[惊讶]", R.drawable.emotion_jingya_gif);
//        EMPTY_GIF_MAP.put("[冷汗]", R.drawable.emotion_lenghan_gif);
//        EMPTY_GIF_MAP.put("[偷笑]", R.drawable.emotion_touxiao_gif);
//        EMPTY_GIF_MAP.put("[可爱]", R.drawable.emotion_keai_gif);
//        EMPTY_GIF_MAP.put("[白眼]", R.drawable.emotion_baiyan_gif);
//        EMPTY_GIF_MAP.put("[傲慢]", R.drawable.emotion_aoman_gif);
//        EMPTY_GIF_MAP.put("[惊恐]", R.drawable.emotion_jingkong_gif);
//        EMPTY_GIF_MAP.put("[流汗]", R.drawable.emotion_liuhan_gif);
//        EMPTY_GIF_MAP.put("[憨笑]", R.drawable.emotion_hanxiao_gif);
//        EMPTY_GIF_MAP.put("[大兵]", R.drawable.emotion_dabing_gif);
//        EMPTY_GIF_MAP.put("[奋斗]", R.drawable.emotion_fendou_gif);
//        EMPTY_GIF_MAP.put("[咒骂]", R.drawable.emotion_zouma_gif);
//        EMPTY_GIF_MAP.put("[疑问]", R.drawable.emotion_yiwen_gif);
//        EMPTY_GIF_MAP.put("[晕]", R.drawable.emotion_yun_gif);
//        EMPTY_GIF_MAP.put("[折磨]", R.drawable.emotion_fakuang_gif);
//        EMPTY_GIF_MAP.put("[衰]", R.drawable.emotion_shuai_gif);
//        EMPTY_GIF_MAP.put("[再见]", R.drawable.emotion_zaijian_gif);
//        EMPTY_GIF_MAP.put("[擦汗]", R.drawable.emotion_cahan_gif);
//        EMPTY_GIF_MAP.put("[抠鼻]", R.drawable.emotion_koubi_gif);
//        EMPTY_GIF_MAP.put("[鼓掌]", R.drawable.emotion_guzhang_gif);
//        EMPTY_GIF_MAP.put("[糗大了]", R.drawable.emotion_qiudale_gif);
//        EMPTY_GIF_MAP.put("[坏笑]", R.drawable.emotion_huaixiao_gif);
//        EMPTY_GIF_MAP.put("[右哼哼]", R.drawable.emotion_youhengheng_gif);
//        EMPTY_GIF_MAP.put("[委屈]", R.drawable.emotion_weiqu_gif);
//        EMPTY_GIF_MAP.put("[快哭了]", R.drawable.emotion_kuaikule_gif);
//        EMPTY_GIF_MAP.put("[阴险]", R.drawable.emotion_yingxian_gif);
//        EMPTY_GIF_MAP.put("[亲亲]", R.drawable.emotion_qinqin_gif);
//        EMPTY_GIF_MAP.put("[可怜]", R.drawable.emotion_kelian_gif);
//        EMPTY_GIF_MAP.put("[猪头]", R.drawable.emotion_zhutou_gif);
//        EMPTY_GIF_MAP.put("[玫瑰]", R.drawable.emotion_meigui_gif);
//        EMPTY_GIF_MAP.put("[拥抱]", R.drawable.emotion_baobao_gif);
//        EMPTY_GIF_MAP.put("[强]", R.drawable.emotion_qiang_gif);
//        EMPTY_GIF_MAP.put("[握手]", R.drawable.emotion_woshou_gif);
//        EMPTY_GIF_MAP.put("[胜利]", R.drawable.emotion_shengli_gif);
//        EMPTY_GIF_MAP.put("[抱拳]", R.drawable.emotion_baoquan_gif);
//        EMPTY_GIF_MAP.put("[NO]", R.drawable.emotion_no_gif);
//        EMPTY_GIF_MAP.put("[OK]", R.drawable.emotion_ok_gif);
        EMOTION_STATIC_MAP = new LinkedHashMap<>();

        EMOTION_STATIC_MAP.put("[):]", R.drawable.ee_1);
        EMOTION_STATIC_MAP.put("[):]", R.drawable.ee_1);
        EMOTION_STATIC_MAP.put("[:D]", R.drawable.ee_2);
        EMOTION_STATIC_MAP.put("[;)]", R.drawable.ee_3);
        EMOTION_STATIC_MAP.put("[:-o]", R.drawable.ee_4);
        EMOTION_STATIC_MAP.put("[:p]", R.drawable.ee_5);
        EMOTION_STATIC_MAP.put("[(H)]", R.drawable.ee_6);
        EMOTION_STATIC_MAP.put("[:@]", R.drawable.ee_7);
        EMOTION_STATIC_MAP.put("[:s]", R.drawable.ee_8);
        EMOTION_STATIC_MAP.put("[:$]", R.drawable.ee_9);
        EMOTION_STATIC_MAP.put("[:(]", R.drawable.ee_10);
        EMOTION_STATIC_MAP.put("[:'(]", R.drawable.ee_11);
        EMOTION_STATIC_MAP.put("[:|]", R.drawable.ee_12);
        EMOTION_STATIC_MAP.put("[(a)]", R.drawable.ee_13);
        EMOTION_STATIC_MAP.put("[8o|]", R.drawable.ee_14);
        EMOTION_STATIC_MAP.put("[8-|]", R.drawable.ee_15);
        EMOTION_STATIC_MAP.put("[+o(]", R.drawable.ee_16);
        EMOTION_STATIC_MAP.put("[<o)]", R.drawable.ee_17);
        EMOTION_STATIC_MAP.put("[|-)]", R.drawable.ee_18);
        EMOTION_STATIC_MAP.put("[*-)]", R.drawable.ee_19);
        EMOTION_STATIC_MAP.put("[:-#]", R.drawable.ee_20);
        EMOTION_STATIC_MAP.put("[:-*]", R.drawable.ee_21);
        EMOTION_STATIC_MAP.put("[^o)]", R.drawable.ee_22);
        EMOTION_STATIC_MAP.put("[8-)]", R.drawable.ee_23);
        EMOTION_STATIC_MAP.put("[(|)]", R.drawable.ee_24);
        EMOTION_STATIC_MAP.put("[(u)]", R.drawable.ee_25);
        EMOTION_STATIC_MAP.put("[(S)]", R.drawable.ee_26);
        EMOTION_STATIC_MAP.put("[(*)]", R.drawable.ee_27);
        EMOTION_STATIC_MAP.put("[(#)]", R.drawable.ee_28);
        EMOTION_STATIC_MAP.put("[(R)]", R.drawable.ee_29);
        EMOTION_STATIC_MAP.put("[({)]", R.drawable.ee_30);
        EMOTION_STATIC_MAP.put("[(})]", R.drawable.ee_31);
        EMOTION_STATIC_MAP.put("[(k)]", R.drawable.ee_32);
        EMOTION_STATIC_MAP.put("[(F)]", R.drawable.ee_33);
        EMOTION_STATIC_MAP.put("[(W)]", R.drawable.ee_34);
        EMOTION_STATIC_MAP.put("[(D)]", R.drawable.ee_35);
//        EMOTION_STATIC_MAP.put("[色]", R.drawable.emotion_se);
//        EMOTION_STATIC_MAP.put("[发呆]", R.drawable.emotion_fadai);
//        EMOTION_STATIC_MAP.put("[得意]", R.drawable.emotion_deyi);
//        EMOTION_STATIC_MAP.put("[流泪]", R.drawable.emotion_liulei);
//        EMOTION_STATIC_MAP.put("[害羞]", R.drawable.emotion_haixiu);
//        EMOTION_STATIC_MAP.put("[尴尬]", R.drawable.emotion_ganga);
//        EMOTION_STATIC_MAP.put("[发怒]", R.drawable.emotion_fanu);
//        EMOTION_STATIC_MAP.put("[调皮]", R.drawable.emotion_tiaopi);
//        EMOTION_STATIC_MAP.put("[呲牙]", R.drawable.emotion_ciya);
//        EMOTION_STATIC_MAP.put("[惊讶]", R.drawable.emotion_jingya);
//        EMOTION_STATIC_MAP.put("[冷汗]", R.drawable.emotion_lenghan);
//        EMOTION_STATIC_MAP.put("[偷笑]", R.drawable.emotion_touxiao);
//        EMOTION_STATIC_MAP.put("[可爱]", R.drawable.emotion_keai);
//        EMOTION_STATIC_MAP.put("[白眼]", R.drawable.emotion_baiyan);
//        EMOTION_STATIC_MAP.put("[傲慢]", R.drawable.emotion_aoman);
//        EMOTION_STATIC_MAP.put("[惊恐]", R.drawable.emotion_jingkong);
//        EMOTION_STATIC_MAP.put("[流汗]", R.drawable.emotion_liuhan);
//        EMOTION_STATIC_MAP.put("[憨笑]", R.drawable.emotion_hanxiao);
//        EMOTION_STATIC_MAP.put("[大兵]", R.drawable.emotion_dabing);
//        EMOTION_STATIC_MAP.put("[奋斗]", R.drawable.emotion_fendou);
//        EMOTION_STATIC_MAP.put("[咒骂]", R.drawable.emotion_zouma);
//        EMOTION_STATIC_MAP.put("[疑问]", R.drawable.emotion_yiwen);
//        EMOTION_STATIC_MAP.put("[晕]", R.drawable.emotion_yun);
//        EMOTION_STATIC_MAP.put("[折磨]", R.drawable.emotion_fakuang);
//        EMOTION_STATIC_MAP.put("[衰]", R.drawable.emotion_shuai);
//        EMOTION_STATIC_MAP.put("[再见]", R.drawable.emotion_zaijian);
//        EMOTION_STATIC_MAP.put("[擦汗]", R.drawable.emotion_cahan);
//        EMOTION_STATIC_MAP.put("[抠鼻]", R.drawable.emotion_koubi);
//        EMOTION_STATIC_MAP.put("[鼓掌]", R.drawable.emotion_guzhang);
//        EMOTION_STATIC_MAP.put("[糗大了]", R.drawable.emotion_qiudale);
//        EMOTION_STATIC_MAP.put("[坏笑]", R.drawable.emotion_huaixiao);
//        EMOTION_STATIC_MAP.put("[右哼哼]", R.drawable.emotion_youhengheng);
//        EMOTION_STATIC_MAP.put("[委屈]", R.drawable.emotion_weiqu);
//        EMOTION_STATIC_MAP.put("[快哭了]", R.drawable.emotion_kuaikule);
//        EMOTION_STATIC_MAP.put("[阴险]", R.drawable.emotion_yingxian);
//        EMOTION_STATIC_MAP.put("[亲亲]", R.drawable.emotion_qinqin);
//        EMOTION_STATIC_MAP.put("[可怜]", R.drawable.emotion_kelian);
//        EMOTION_STATIC_MAP.put("[猪头]", R.drawable.emotion_zhutou);
//        EMOTION_STATIC_MAP.put("[玫瑰]", R.drawable.emotion_meigui);
//        EMOTION_STATIC_MAP.put("[拥抱]", R.drawable.emotion_baobao);
//        EMOTION_STATIC_MAP.put("[强]", R.drawable.emotion_qiang);
//        EMOTION_STATIC_MAP.put("[握手]", R.drawable.emotion_woshou);
//        EMOTION_STATIC_MAP.put("[胜利]", R.drawable.emotion_shengli);
//        EMOTION_STATIC_MAP.put("[抱拳]", R.drawable.emotion_baoquan);
//        EMOTION_STATIC_MAP.put("[NO]", R.drawable.emotion_no);
//        EMOTION_STATIC_MAP.put("[OK]", R.drawable.emotion_ok);
    }
}
